/*
*  Copyright 2019-2023 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import me.zhengjie.base.BaseEntity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* @description /
* @author huangwencong
* @date 2024-10-04
**/
@Data
@TableName("train_khzyhx")
public class TrainKhzyhx extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "训练 ID")
    private Long trainId;

    @ApiModelProperty(value = "训练项目")
    private Long trainItemId;

    @ApiModelProperty(value = "心眼垂直距离(cm)")
    private Integer cycz;

    @ApiModelProperty(value = "安静血压(mmhg)")
    private Integer ajxy;

    @ApiModelProperty(value = "4KPa抗荷正压呼吸训练血压(mmHg)")
    private String kfhxy;

    @ApiModelProperty(value = "下肢蹬力检测(0:不合格,1:合格)")
    private Integer xzdl;

    @ApiModelProperty(value = "左下肢_2kPa(kg)")
    private String zxz;

    @ApiModelProperty(value = "右下肢")
    private String yxz;

    @ApiModelProperty(value = "持续时间_2kPa(s)")
    private String cxsj;

    @ApiModelProperty(value = "PHP 动作掌握程度(0:熟练掌握，1:掌握，2:基本掌握，3:不掌握)")
    private Integer phpzw;

    @ApiModelProperty(value = "呼吸曲线与呼吸引导曲线同步程度(0:完全同步，1:同步，2:基本同步，3:不同步)")
    private Integer qxtb;

    @ApiModelProperty(value = "评定结果(0:优秀，1:良好，2:合格，3:不合格)")
    private Integer result;

    @ApiModelProperty(value = "建议")
    private String jy;

    @ApiModelProperty(value = "记录日期")
    private Timestamp date;



    public void copy(TrainKhzyhx source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
